package com.siashan.toolkit.lock4j.strategy;

/**
 * 锁失败策略
 *
 * @author siashan
 * @since v1.0.1
 */
public abstract class LockFailStrategy {

    /**
     * 锁失败事件
     *
     * @param key   锁key
     * @param acquireTimeout   获取锁超时时间
     * @param acquireCount     尝试次数
     */
    public abstract void onLockFailure(String key, long acquireTimeout, int acquireCount,String lockFailMsg);

}
